package designpattern.builder.extension;

/**
 * 套餐
 * 
 * @author chunwei.zhao
 * 
 */
public class ComboMeal {
    // 主食；
    private Meal meal;
    // 饮料；
    private Drink drink;
    // 甜品；
    private Dessert dessert;
    // 配餐;
    private SideItem sideItem;

    public ComboMeal() {
    }

    public Meal getMeal() {
        return meal;
    }

    public void setMeal(Meal meal) {
        this.meal = meal;
    }

    public Drink getDrink() {
        return drink;
    }

    public void setDrink(Drink drink) {
        this.drink = drink;
    }

    public Dessert getDessert() {
        return dessert;
    }

    public void setDessert(Dessert dessert) {
        this.dessert = dessert;
    }

    public SideItem getSideItem() {
        return sideItem;
    }

    public void setSideItem(SideItem sideItem) {
        this.sideItem = sideItem;
    }

    @Override
    public String toString() {
        return "ComboMeal [dessert=" + dessert.getName() + ", drink=" + drink.getName() + ", meal=" + meal.getName()
                + ", sideItem=" + sideItem.getName() + "]";
    }

}
